package com.hc.conferencecheck.mapper;

import com.hc.conferencecheck.entity.AttendRecordBranch;
import com.hc.conferencecheck.entity.AttendRecordBranchExample;
import com.hc.conferencecheck.entity.entityDTO.ConferenceAddressDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface AttendRecordBranchMapper {
    long countByExample(AttendRecordBranchExample example);

    int deleteByExample(AttendRecordBranchExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(AttendRecordBranch record);

    int insertSelective(AttendRecordBranch record);

    List<AttendRecordBranch> selectByExample(AttendRecordBranchExample example);

    AttendRecordBranch selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") AttendRecordBranch record, @Param("example") AttendRecordBranchExample example);

    int updateByExample(@Param("record") AttendRecordBranch record, @Param("example") AttendRecordBranchExample example);

    int updateByPrimaryKeySelective(AttendRecordBranch record);

    int updateByPrimaryKey(AttendRecordBranch record);

    /**
     * 批量插入分会场记录
     *
     * @param list
     * @return
     */
    int insertBatch(List<AttendRecordBranch> list);

    /**
     * 查询会议的分会场详情
     *
     * @param params
     * @return
     */
    List<ConferenceAddressDTO> selectAttendRecordByIds(Map<String, Object> params);
}